/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.guilayer.sprites.key;


/**
 * @author Massimo Canonaco
 *
 */
public abstract class AbstractSheetKey 
{
	private AbstractFrameKey frameKey;
	
	
	@Override
	public boolean equals(Object o)
	{
		if(o instanceof AbstractSheetKey)
		{
			AbstractSheetKey ask = (AbstractSheetKey) o;
			return this.getKey().equals(ask.getKey());
		}
		return super.equals(o);
	}
	
	@Override
	public int hashCode() {
		
		return getKey().hashCode();
	}
	
	abstract public AbstractSheetKey getCopy();
	abstract public String getKey();
	/**
	 * @return the frameKey
	 */
	public AbstractFrameKey getFrameKey() {
		return frameKey;
	}

	/**
	 * @param frameKey the frameKey to set
	 */
	public void setFrameKey(AbstractFrameKey frameKey) 
	{
		this.frameKey = frameKey;
	}
	
	
}
